package com.manli.api.enums;

public enum ResultEnums {
	
	/*成功返回*/
    SUCCESS(0, "成功"), 
    /*特殊异常*/
    UNKONW_ERROR(-1, "呀，服务器开小差了~"),
    //登录相关
    NO_LOGIN(-2,"用户信息不存在。可能未登录"), 
    NO_LOGIN_ERR_LOGIN_Info(-3,"用户名密码错误或信息不存在,请核对"),
    NO_LOGIN_REFRESH_TOKEN_IS_EXPIRE(-4,"refresh_token已经失效"), 
    /* 异常相关 */
	UNKONW_REDIS_TYPE(1,"redis类型[单机,集群]未知"),
	NOSOURCE_404(2,"404资源不存在"),
	NO_PERMISSIONS(3,"没有权限"),
	NO_METHO_URL(4,"没有可执行的方法,您的路径可能是静态资源"),
    METHOD_NEED_SET_INTERFACE_PERMISSONS(5,"可能请求地址不存在或则请求方法请用@Permissions注解.请检查"), 
    Permissions_NO_TYPEOFACCESSS(6,"@Permissions找不到合适的权限类型"), 
    USER_EXIT(7,"用户已存在"), 
    SQL_DROP_FORBIDDEN(8,"SQL DROP 禁止操作"), 
    SQL_DELETE_FORBIDDEN(9,"SQL DELETE　禁止操作"), 
    USERINFO_CREATE_ERROR(10,"当前商户下用户信息已经存在不能重复"), 
    SQL_INJECTION(11,"警告:sql存在注入风险"),
    UNKNOW_WECHAT_USER_INFO(12,"微信用户信息获取失败"),
    ONLY_WECHAT_LOGIN_CONNECT(13,"当前接口只支持微信登陆访问"),
    NO_ACTIVE_APPIDANDAPPSECRET(14,"没有获取到微信配置信息"),
    ERROR_MINIPROGRAM_GETUSERINFO(15,"小程序获取用户信息解密失败"),
    USE_NOT_SUBCREIP_WECHAT(16,"用户未关注公众号,请先关注公众号"),
    TOO_MANY_LOGIN_ERR_LOGIN_Info(17,"查询多用户绑定该账号" ),
    USER_UNIONID_IS_EXIT(18,"该账号已经被其他用户绑定或微信号和账号不匹配,请核查"),
    BIND_UNIONID_USERID_CODE_EXPIRE_TIME(19,"微信后台账号绑定code过期"),
    WAIT_FOR_BIND_OR_TIME_OUT (20,"账号绑定等待中"),
    GOODS_INFO_NOT_USEFUL(21,"产品已失效"),
    STOCK_COUNT_LESS_THAN_BUY_COUNT(22,"库存数量不足"),
    MORE_THAN_ONE_OR_NO_GOODS_FIND(23,"支付信息数据获取多条或没有,请核对") ,
    UNKONW_PAY_SOURCE(24,"支付来源不明确请核对") ,
    NO_FOUND_QUEUE_NAME_JOB (25,"未找到相对应的队列名称"),
    ACTIVITY_CANT_FOR_PAY_OPTION (26,"未满足活动商品支付条件") ,
    ACTIVITY_CANT_FOR_PAY_TIME_OUT (27,"活动产品超过支付时限") ,
    ACTIVITY_NOT_OPEN (28,"活动未启用") ,
    UNKONW_ORDER_INFO (29,"未查询到任何订单信息,请核对") ,
    ORDER_APPLY_EXITS (30,"订单已申请退款,请勿重复提交"),
    ORDER_APPLY_BEEN_AUDIT (31,"退款申请已审核") ,
    UNKONW_BRANCH (32 , "未知总店编号") ,
    UNKONW_PARTNER (33 , "未知分店编号")  ,
    ACTIVITY_TIME_OUT (34,"活动已结束") ,
    HAS_PAY (35 , "您已支付,请勿重复支付") ,
    NO_PERMISSIONS_AUDIT_REFUSE (36,"您没有权限审核该退款申请单") ,
    NO_PAY_FOR_ACTIVITY (37,"未查询到活动已支付信息") ,
    PINGTUAN_ACTIVITY_PEOPLE_NUM_ENOUGH (38,"该团人数已满,请加快手速哦") ,
    REDIS_LOCK_TIME_OUT (39,"当前排队人数较多,请重试.R_L_T_O") ;
    private Integer code;

    private String msg;

    ResultEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
